Skip to content

Conversation

thet
Copy link
Member

@thet thet commented Jun 3, 2025

@mister-roboto
Copy link

@thet thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@thet
Copy link
Member Author

thet commented Jun 3, 2025

@jenkins-plone-org please run jobs

@thet thet requested review from petschki and yurj June 3, 2025 19:33
Copy link
Member

@petschki petschki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This should also be added to the docs, so that theme integrators can implement this in their custom rules.xml and parameters too.

@thet
Copy link
Member Author

thet commented Jun 11, 2025

@jenkins-plone-org please run jobs

@petschki
Copy link
Member

@thet can this be merged today or tomorrow? then I could do a release and @mauritsvanrees could include it in the upcoming Plone 6.1.2 release.

@thet
Copy link
Member Author

thet commented Jun 16, 2025

@petschki yes, it can be merged. I just wanted to keep it open until I have done the documentation.

@petschki
Copy link
Member

@thet so you merge it, when you're ready with the docs right? I do not have the complete overview what needs to be merged together with this PR ...

@thet
Copy link
Member Author

thet commented Jun 17, 2025

@petschki I've done the docs - improving them is another story and separate from this PR.

plone/documentation#1961

I'll merge.

@thet thet merged commit 8c80134 into master Jun 17, 2025
16 checks passed
@thet thet deleted the ajax_load branch June 17, 2025 15:23
@davisagli
Copy link
Member

This doesn't seem safe to me. If I have Diazo rules which change the markup of part of a page, then I want to get the changed markup whether I'm loading the entire page or replacing part of it via an ajax request.

@mauritsvanrees
Copy link
Member

Wouldn't that always be in a custom theme? Then you will have your own variables, rules, and index.html.

Sure, this is something to watch out for if your theme is based on Barceloneta. But at least the fix is easy: in the theme variables set ajax_load = python:True (if I have the spelling correct).

@thet
Copy link
Member Author

thet commented Jun 23, 2025

@davisagli

Also, this same variable was present in Barceloneta in Plone 5 and fell out by accident (I think) in Plone 6:

Uhm the ajax_load Diazo switch wasn't present in plonetheme.barceloneta, though I was so sure about it I didn't even check before.
Also I was using it ever since in own themes.

Hm.

But I agree with @mauritsvanrees argument. A custom theme will most likely use own rule files, so I do not see a problem here too.

@davisagli
Copy link
Member

@thet @mauritsvanrees Right, it helps that this change is only for the Barceloneta theme and not custom themes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants